requestAnimationFrame shim (for AMD and all the other stuff)