Added window.requestAnimationFrame polyfill