Asteroids in JavaScript