shim for cancelRequestAnimationFrame
extract class and fixed shim