update jQuery.fn.safeAnimate