Improve game.js module