a bit more cleanup of game.js