pacman on AngularJs