I don't really have a good grasp of webstorage.
Develop games in your browser. Powerful, performant & highly capable.
Have you read the manual entry?
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.