Fix requestAnimationFrame polyfill

Because of self._interval, we can't make this polyfill global