title: How to allow multiple instances in javascript if object wrapped in anonymous func
body: <p>As crockford and john resig advocated one should wrap object within anonymous function. But what if one needs to have multiple instances ? When it is wrapped only one instance will exist (singleton).</p>
  
  <p>Update: I forget to say I'm of course talking about the root object of a framework (not jquery but my own) not of any object. Since it's a framework the number of instances is not known and decided by client.</p>
  
  <p>I guess 99.99% of people just use frameworks and don't build their own so if you don't know don't try to answer something you do not understand yourself :)</p>