Pong interpretation written in Javascript