You can try storing the global variables into the array on save and then when loading set them from array <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
I didn't know you could do that, but I also found another method that also worked, I used a tutorial from here:
https://www.scirra.com/tutorials/968/ho ... webstorage
I don't know if that's what you're referring to, but It took some figuring out since I'm still a touch programming illiterate when it comes to this stuff, but after a few placements I finally managed to figure it out and now the global variable for my game's tokens are saveable! (As long as the user doesn't oversave the wrong file, haha.)
Thanks for your help mate.