title: How to to convert my curl method to work in my javascript script?
body: <p>Beginner in javascript,
  I'm looking for ways to convert my curl method to work in my javascript script.</p>
  
  <p>Here is my curl method:</p>
  
  <pre><code>curl -X GET "http://model.dbpedia-spotlight.org/en/annotate?text=beyonce" -H "accept: text/html"
  </code></pre>
  
  <p>My test with ajax (doesn't work):</p>
  
  <pre><code>$.ajax({
      method: "GET",
      url: "http://model.dbpedia-spotlight.org/en/annotate?text=beyonce"
  })
  </code></pre>