Asteroids using JavaScript