title: $document -> addScript() not working on existing files
body: <p>I'm trying to include JS and CSS files on a page in Joomla. For some reasons it's not working if a prepend the JURI::root() or something else.</p>
  
  <p>Working:</p>
  
  <pre><code>$document-&gt;addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');
  </code></pre>
  
  <p>Not working:</p>
  
  <pre><code>$document-&gt;addScript(JURI::root() . '/media/media/js/clubliga/jquery.min.js');
  $document-&gt;addScript('/jupgrade/media/media/js/clubliga/jquery.min.js');
  </code></pre>
  
  <p>Is <code>addScript()</code> somehow filtered? I've tried all combinations also with <code>.DS.</code> or <code>JHTML::script</code> ...</p>
  
  <p>I'm at a loss ... Grateful for any hint!</p>
  
  <p>EDIT: Joomla is running in a subdirectory: <a href="http://www.xyz.com/jupgrade" rel="nofollow">http://www.xyz.com/jupgrade</a></p>
  
  <p>EDIT2: Not working: There's no output.</p>
  
  <p>EDIT3: The problem seems to be the jupgrade (=JURI:root(true)) at the beginning of the path. For some reasons it's blocking the output. If I skip it at the beginning I get the link displayed but now with the wrong path.</p>