pong implemented with JS and a canvas