It should come back on it's own with time (you can also chase after it), but sometimes the physics engine in the web build seems to skip a frame, and the ball flies out of the map.
I tried chasing it, but the ball just constantly bounced on the inner corners and went away.