Ruby on Rails game generator in Html/Jquery