title: Rails 3.1 - How do you include external javascript libraries in vendor/assets/javascript?
body: <p>In mulitple views I am including an external javascript library with this HTML:</p>
  
  <pre><code>&lt;script type="text/javascript" 
          src="http://static.jstree.com/v.1.0pre/jquery.jstree.js"&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>In reading through the Rails 3.1 Asset Pipeline documentation and discussions I get the impression that <code>vendor/assets/javascripts</code> is a place were that file should be referenced.  I'm guessing that I could download a copy of the file (<code>jstree.js</code>) and place it in that directory. However I'd like to have it loaded off the project site instead of making a local copy of it.  </p>
  
  <p>What do I put in vendor/assets/javascripts to pull a copy of jstree.js off the remote server?  Do I create a .js file with some sort of remote load code?  There seems to be all sorts of approaches and/or confusion on how to best do this ( see the long list of answers to this question:  <a href="https://stackoverflow.com/questions/950087/include-javascript-file-inside-javascript-file">How do I include a JavaScript file in another JavaScript file?</a> .)  </p>
  
  <p>Is there a "Rails Standard" convention/library/process for doing this?  I'm a javascript neophyte, so please be explicit, thanks.</p>