Added requestAnimationFrame polyfill.