$.ajax replaced

Replaced the $.ajax call with an xhrhandler call that returns the
responseText after a synchronous/imperative-style XHTTP call.