Add cancelAnimationFrame for rAF shim