Hi,
I'm SO SORRY to hear you lost your source code, and your game.
I do assume from your description that you you checked localStorage thoroughly for your game text. Are you sure that you weren't in an incognito window in your code editing window. One problem is that modern browsers conceil if they are in incognito windows so I can't warn any author that their work would be lost in such a scenario.
I do wonder how it is possible to lose the game in its entirety. All I can think of is that your cleared down the window then closed the window immediately after that (it auto saves on a window close). I'll try to trap such activity in the future, but it would really help if you could tell me which browser you were using.
There is a menu options called "Save File" which will store the game locally, and obviously I recommend using that from time to time so you have a local copy of the file, but obviously the horse has bolted.
Again, I'm SO SORRY. Absolutely the only two things I can think of is that the text was cleared down before closing the window, or that you were in an incognito window. For the former problem, I'll trap "Save and Execute" (the play button) and window close event, so that it won't overwrite a big file with a blank file.
I do hope this doesn't end your participation, but I fully understand that you must have lost faith.
Chris