title: How to use JSONP
body: <p>I have the following code</p>
  
  <pre><code>function exista(word) {
      alert(word);
      var exists = 1;
      jQuery.ajax({
          async: false, 
          url: "http://api.wordreference.com/0.8/key/json/roen/" + word,
          dataType: 'json',
          method: "GET",
          success: function(transport) {
              if (transport.Error || transport.Response)
                  exists = 0;
          }
  
      });
      return exists;
  }
  </code></pre>
  
  <p>which verifies if a word exists or not in a dictionary. Problem is it gives an Access-Control-Allow-Origin error. From what I gathered it seems I must use JSONP but I can't really figure out how (sorry, I am just beginning to learn JavaScript and all that). So, got any idea on how to modify the above code? </p>
  
  <p>Thank you.</p>