How to create a javascript class or module, I need 2 instances on a page
<p>I am wrapping common javascript functions that will work on elements on a page.</p>

<p>My page has 2 of these elements (textareas), so I will need to create 2 instances and then I want to do this:</p>

<pre><code>var textArea1 = new SomeClass();
var textArea2 = new SomeClass();

textArea1.init("ta1");
textArea2.init("ta2");
</code></pre>

<p>I tried doing this the module pattern way, but I'm confused how I can create 2 seperate instances of it?</p>

<pre><code>var MYMODULE = function() {

  var _init = function(ta) {
       // ..
  }

  return {
     init: function(ta) {
       _init(ta);
     }
  };

}();
</code></pre>
