title: Exporting multiple functions in one module in NodeJS
body: <p>Hi I ran into a problem in Nodejs(with express) while trying to export a module with two functions which is structured as follows</p>
  
  <pre><code>exports.class1 = function(){
      return = {
           method1 : function(arg1, arg2){
               ...........
           },
           method2 : function (arg2, arg3, arg4){
               ..........  
           }
  
     };
  
   }
  </code></pre>
  
  <p>this module is saved in as module1.js
  when it is imported and used as follows an error occurs</p>
  
  <pre><code>var module1 = require('./module1');
  
  module1.class1.method1(arg1, arg2);
  </code></pre>