title: Replacement for $.ajax() in Node.js
body: <p>I have been using jQuery's $.ajax() functionality to make asynchronous http requests from my Node server to other external API servers.</p>
  
  <p>I now want to upgrade my libraries but I'm getting</p>
  
  <pre><code>....
  /jquery/node_modules/jsdom/lib/jsdom/level1/core.js:418
     set nodeName() { throw new core.DOMException();},
                 ^^
  
  SyntaxError: Setter must have exactly one formal parameter.
  </code></pre>
  
  <ol>
  <li>How can I fix this error?</li>
  <li>Is there any library that is equally flexible as <code>$.ajax()</code> is? I'm particularly interested in the <em>promise</em> and <em>$.ajaxPrefilter()</em> functionalities.</li>
  </ol>