Create $.ajax version of an original JS-based XMLHttpRequest example.