JavaScript pacman game app