In that case, the simpler method I think would be:
-have a global variable named game_started, value 0
-on start of the layout, and if game_started is 0, set the webstorage value and also set game_started to 1
then you never change the value of game_started and you'll be fine