title: require("mongojs").connect is undefined
body: <p>I just started to learn mongodb. I tried the following code in my app.js </p>
  
  <pre><code>var databaseUrl = "localhost:27017/pixelmargin"; // "username:password@example.com/mydb"
  var collections = ["pages"]
  var mongojs = require("mongojs");
  var db = mongojs.connect(databaseUrl)
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: undefined is not a function ' error occurs on line 'var db = mongojs.connect(databaseUrl)</p>
  </blockquote>