Wrapped in a basic timer loop

Open the console then watch as the 0 displays the location of the ball.
Focus on the page window. then hit spacebar to start the ball moving