fix window.requestAnimationFrame polyfill