adding requestAnimationFrame polyfill