title: Including Superagent as AMD
body: <p>I am a little confused about multiple ways of importing files in Javascript (script tag, RequireJS, Component - if it is another way to include files). In my project, I am using AMD with RequireJS.<br>
  Now, I want to use <a href="https://github.com/visionmedia/superagent" rel="nofollow">superagent</a> library.<br>
  I donwnloaded <em>superagent.js</em> file, and I included it in some test pages using <em>script</em> tag. Then, I can use a <em>require</em> function (defined in superagent.js), and I definitely have access to superagent functions, if I write:</p>
  
  <pre><code>var request = require('superagent');
  </code></pre>
  
  <p>in my JS file. <br>
  Is there a way to use Superagent library in my poject, which is based on RequireJS? I hope to still use:</p>
  
  <pre><code>var request = require('superagent');
  </code></pre>
  
  <p>, but clearly it is not working.</p>