Rewrites requestAnimationFrame polyfill