Making pong in javascript.