Pure JS implementation of pong.