JavaScript snakes game.