As the game doesn't even start I think that we are dealing with a race-condition between the main loop wanting to call up the function/variable and the initialization routines not yet having defined it.
It seems to be a problem with the save file. I did another change to load a backup save in case of error, but if the change still don't fix it I will have to dig my code to find what happened and hopefully fix it without needing to reset the save. I'm sorry about all the trouble.
If you allow me do another question: Do you got to play the game at all and then the bug happened or the game never loaded in the first place? Also, which browser you are using?