Simple space invaders game implemented with javascript