Basic game loop in JavaScript for a space invaders type of game. Free of any frameworks or libraries.