implementing requestAnimationFrame is going to require some serious mods, so branching here.