You only need to save the global variable if you are going to quit the game and restart..
Global means that it is accessable from every layout, so when you set it in layout one, what you set will be available in layout two..
If however you quit the game this info is lost..
No need to save to webstorage unless you reload the entire game..