Using requestAnimationFrame polyfill