RequestAnimationFrame polyfill. Kinda.