Using Javascript, created a simple game involving balls.