title: TypeError: Object is not a function at Object.<anonymous> when constructing Javascript w/ new
body: <p>I've put together a little code in one file, which is below:</p>
  
  <pre><code>var exports = Symphonize;
  
  function Symphonize(generation_specification) {
      this.generate_spec = function(){
          return generation_specification;
      }
  }
  </code></pre>
  
  <p>When I start another JavaScript file in the same project and require the code like so:</p>
  
  <pre><code>var symphonize = require('../bin/symphonize');
  var Symp = new symphonize({"test":"test1"});
  </code></pre>
  
  <p>It throws the error:</p>
  
  <blockquote>
    <p>/Users/adron/Codez/symphonize/tests/symphonize.js:8 </p>
    
    <p>var Symp = new symphonize({"test":"test1"});</p>
  
  <pre><code>          ^ TypeError: object is not a function at Object.&lt;anonymous&gt;
  </code></pre>
  </blockquote>
  
  <p>Is there another way I should be constructing this? I just want the "symphonize" code to require a simple object (an object of configuration that will be JSON) before any functions on that code are called.</p>