title: How to add javascript to joomla module?
body: <p>Hi I have problem with adding javascript into a joomla module..I've found some solution, but it's not working..</p>
  
  <pre><code>$document = &amp;JFactory::getDocument();
  $document-&gt;addScript("/career.js");    
  </code></pre>
  
  <p>These two lines I have in my module, but the script isn't in rendered site..
  The file is in root of my web (for test purposes only).</p>
  
  <p>Thanks for your help</p>