title: Use Raphael JavaScript library in TypeScript
body: <p>Is it possible to use JavaScript libraries in TypeScript?</p>
  
  <p>For example I want to use <a href="http://raphaeljs.com/">Raphael</a> in TypeScript and added the JS files in my <code>/scripts folder</code> and added them to <code>_references.js</code>.</p>
  
  <p>But when I want to declare in my TS file:</p>
  
  <pre><code>var r = Raphael(10,50,640,480);
  </code></pre>
  
  <p>Intellisense always says:</p>
  
  <blockquote>
    <p><code>Raphael does not exist in the current scope.</code></p>
  </blockquote>
  
  <p>and the TS file does not compile.</p>