Simple pong game created using javascript and canvas