move functionality from create.js.erb to createGames.js