$.deferred api add