Stops requesting unneeded animation frames

The requestAnimationFrame loop now starts only when the first leap frame is received.