game.js modified