title: Passing parameter to a module javascript
body: <p>I am using module pattern in javascript.
  Is it a way to create instances of a "class" ?
  I am using it in a right way ? </p>
  
  <pre><code>var moduleClass = (function () {
  var a =5;
  return {
  getA: function () {
    console.log(a);
   }
  };
  })();
  var instance = moduleClass;
  instance.getA();
  </code></pre>
  
  <p><a href="http://jsfiddle.net/PzLKy/">http://jsfiddle.net/PzLKy/</a>
  How can I pass parameters on new instances ?</p>