moved js out of games/index.html.erb