fixed a bug in Safari

animationstart, animationend events will not be triggered in Safari,
isWebkit judge error. Because it don't support document.webkitHidden.