window.requestAnimationFrame polyfill as a component