I don't really have a good grasp of webstorage.
Have you read the manual entry?
Develop games in your browser. Powerful, performant & highly capable.
Yes I have but I could not get the global variable to stay the same when I left the layout. I guess I'm just doing something wrong.