Space Invaders in JavaScript