Wrap jQuery.ajax in a Promise library of your choice.