Adding an extension to support jquery promise on animations.