I have two jQuery Ajax callbacks in succession, to fetch two sets of data from two different URLs, before combining them.    $.ajax({      type: GET,      url: numeratorUrl,      error: function(request, status, error) {        _this.showErrorMessage(request.status, error);      },      success: function(data) {        parse(data,             {columns: true },             function(err, output){                _this.globalOptions.data.numeratorData = output;                $.ajax({                  type: GET,                  url: denominatorUrl,                  error: function(request, status, error) {                    _this.showErrorMessage(request.status, error);                  },                  success: function(data) {                    parse(data,                         {columns: true },                         function(err, newOutput){                            _this.globalOptions.data.denominatorData = newOutput;                            // combine the two datasets here                         }                    );                  }                });             }        );      }    });It works fine, but I think it's unwieldy and hard to read. Is there a way to make it cleaner?
Combining data from two AJAX requests
javascript;jquery;ajax