AnimationFrame polyfill