First experiment with HTML5/Javscript: attempt to implement Pacman