Although it is not recommanded, you could have a helper function to enable any cheat funcationality. whenever you need to cheat, just run the function in the browser console. This way you can keep your cheating for development and also publish your game for normal player at the same time.