Attempting switching ajax call from plain XHR to jquery