Jquery game wrapped in rails