make asteroids.js node-friendly