title: Browserify - disable closure
body: <p>I have recently started using <em>Browserify</em> but I've ran into one serious problem. I have an object of functions which I need to use in my HTML view. Simple example:</p>
  
  <p><strong>js</strong></p>
  
  <pre><code>Menu = { open: { /* open menu */ } }
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;span onclick="Menu.open()"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>I <em>need</em> to use it like this, the event listener is not working for this. I have tried to define menu as <code>window.Menu</code>, but that is not working either (for unknown reason).</p>
  
  <p>So my question goes - is there any way to make variables accessible globally even in HTML views and dev console?</p>
  
  <p>The only thing I can think about is completely removing the closure but I didn't find any way to do so.</p>
  
  <p>Thanks a lot!</p>