title: How to load mongojs module
body: <p>I've some problem using mongojs. When I try to call a function (that is defined in a javascript file) from an html page I've got this error:</p>
  
  <pre><code>Uncaught Error: Module name "mongojs" has not been loaded yet for context: _. Use require([])
  </code></pre>
  
  <p>In the file js I connect to mongojs through these lines:</p>
  
  <pre><code>var databaseUrl = "webIndexDb";
  var collections = ["clusters"];
  var db = require("mongojs").connect(databaseUrl, collections); 
  </code></pre>
  
  <p>In file html I have import require.js </p>
  
  <pre><code>&lt;script type='text/javascript' src='http://requirejs.org/docs/release/2.1.5/r.js'&gt;&lt;/script&gt;   
  </code></pre>
  
  <p>what goes wrong?</p>
  
  <p>Thanks in advance.</p>