My take on the game Asteroids using javascript