Convert $.Deferred to defer module (bug 888767)