Pong game implemented with HTML5 canvas and javascript