Its Probably late to post this, but since its abandoned I'd figure i'd let any interested party know. To Cheat/Edit game variables, just open the browser's Console (F12 for most browsers) and in the Console Tab type the following:
PLAYER
Then hit enter and select the variables you want to adjust.
To my knowledge you cannot adjust the resources from here but you can adjust player stats to whatever you want.
To edit resources I believe you have to open the save file and manually edit it after saving to file. (As mentioned in previous posts: Using CTRL+F helps find the variables you want to change faster)