Replaces setTimeout with requestAnimationFrame. Starts pause button