update game.js to erb