Asteroids with html5 and javascript