Used shim for requestAnimationFram