Added requestAnimationFrame polyfill