Add requestAnimationFrame polyfill