JavaScript/Canvas implementation of asteroids