Add requestAnimationFrame polyfill.