title: jsTree: loading the jquery.jstree.js file from an app dir behaves differently from loading it from a URL
body: <p>I'm sure this is something simple, but it's really confusing me.  Unfortunately, I'm extremely new to jsTree/jQuery and very new to javascript.  I have a functioning tree in my web application based from an example in the jsTree documentation page.  The tree functions, looks good, and events going to it work well.</p>
  
  <p>The issue is that the demo loads the jstree javascript library with a URL as follows:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://static.jstree.com/v.1.0rc2/jquery.jstree.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I downloaded the 1.0rc2 jsTree zip file yesterday, extracted it, and put the jquery and jstree javascript libraries in the proper place in my web app.  I then change the loading of the jstree library to the following:</p>
  
  <pre><code>&lt;script type="text/javascript" src="&lt;%=request.getContextPath()%&gt;/jquery.jstree.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>When I do this, the tree still works, sort of.  The root nodes are still displayed, and a button I have to expand the first node still works.  However, the folder icons, expansion triangle, and dots are gone.  I know the file is located correctly.  If it wasn't, I would see errors and the button to expand the first node wouldn't work.  I've also reproduced this test several times so I know the difference in behavior is caused by loading it from my app's dir instead of the url.</p>
  
  <p>I explicitly downloaded the js file from <a href="http://static.jstree.com/v.1.0rc2/jquery.jstree.js" rel="nofollow">http://static.jstree.com/v.1.0rc2/jquery.jstree.js</a>, and did a file compare with the one from the zip distribution, and there were no differences.</p>
  
  <p>For some reason that completely escapes me, loading the library from the url allows the tree to be displayed properly, but loading the exact same file from my app folder does not.</p>
  
  <p>Does anyone have any ideas?</p>
  
  <p>Thanks for the help.</p>