fixed error (webkitCancelAnimationFrame)