updated requestAnimationFrame polyfill