HTML5 implementation of Pacman