Javascript Asteroids game ported in a Rails app