Thanks a bunch Riley! That really means a lot :)
Actually that's the one part of the game that I didn't do myself. I had a colleague help me wrap the game for an iOS app, and he also helped me with the save state. From the looks of the code I'm pretty sure he used localStorage.