title: Module pattern instantiated in a window property
body: <p>I need to code a module pattern instantiated in a window property. What would be the best way of doing that?</p>
  
  <pre><code>var widget = (function(){
  
  
  }());
  </code></pre>