[QUOTE=nurzhanCAKE] Thanks for reply, but I don't need to save EXACTLY where I left off. I just need to save which levels are open, complete or closed, and global variables. And when player starts the game, it automatically loads it, like in Angry Birds/Where's My Water and etc.[/QUOTE]
Take a look at webstorage object.
You can save your variables between game restarts, and initialize your game based on those.