JavaScript you say? Ping-Pong I say!

Here is my attempt at the Ping-Pong test. Enjoy!