Added window.requestAnimationFrame polyfill.