title: Uncaught SyntaxError: Unexpected token <
body: <p>I try to access the <a href="http://support.orcid.org/knowledgebase/articles/116874-orcid-api-guide" rel="nofollow">ORCID API</a> through JavaScript. I use JSONPfor the cross domain call but get this error:</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token &lt;</p>
  </blockquote>
  
  <p>Bellow is the code I use:</p>
  
  <pre><code>&lt;html &gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="http://code.jquery.com/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    $(document).ready(function()
      {
  $.ajax({
          type: 'GET',
          url:'http://pub.orcid.org/0000-0002-5426-4031/orcid-bio',
          dataType: 'jsonp'
          }).done(function(res){alert("sucess")}).
            fail(function(res){alert("failed"); console.log(res)}).
            always(function(res){alert("complete")});
      });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>