Polyfill requestAnimationFrame