title: JSONP Help (No jQuery)
body: <p>I'm trying hard here to figure out how to do a JSONP request, but everywhere I look for reference material is all jQuery examples. I can read the jQuery source, but I wanted a clean and simple example. I'm building a library for something and I dont want to include jQuery, so please, no jQuery <code>$.getJSON</code>. I know how to do use that.</p>
  
  <p>My server spits out the normal <code>callback({"foo":"bar"})</code> response with a <code>content-type: application/json; charset=utf-8</code> MIME.</p>
  
  <p>So if I put in a script tag like (using Twitter since I KNOW their API works):  </p>
  
  <pre><code>&lt;script src="http://twitter.com/users/oscargodson.json?callback=test"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Or dynamically. Either works and I get the JSON, its the next step I can't figure out.</p>
  
  <p>If I do just <code>console.log(test)</code> after the script loads I get: <code>Uncaught ReferenceError: test is not defined</code></p>
  
  <p>Why? How, after i get the response from the server, do I then pass that to myself? On my own server if i do <code>callback = {"foo":"bar"}</code> callback works and returns an object, but not the way above. How come? Ive only used AJAX libraries to do this, but for this project I need to code it myself :)</p>