shim for requestAnimationFrame