Introduced $.Deferred and cleaned up around