Write defition for JQueryXHR.then method.

Working on borisyankov/DefinitelyTyped#2314