Updated requestAnimationFrame polyfill