title: node.js include class file
body: <p>I got 2 files:</p>
  
  <p>start.js</p>
  
  <pre><code>    var ConversationModule = require('./src/classes/conversation/Conversation.js');
      ConversationModule.sayhello();
  </code></pre>
  
  <p>conversation.js</p>
  
  <pre><code>    var ConversationModule = new Object();
  
      ConversationModule.sayhello = function () {
      console.log("hello");
      };
  
      exports.ConversationModule = ConversationModule();
  </code></pre>
  
  <p>In start.js I cannot call the sayhello() method. I get following error</p>
  
  <pre><code>TypeError: object is not a function
  </code></pre>
  
  <p>I just don't get it why it doesn't work - I'm new to node :)</p>