title: Splitting a JavaScript namespace into multiple files
body: <p>Let's say I have a namespace like that:</p>
  
  <pre><code>var myNamespace = {
      foo: function() {
      },
      bar: function() {
      }
  };
  </code></pre>
  
  <p>What is the best way to split this code into files defining <code>foo</code> and <code>bar</code> separately?</p>
  
  <p>I'm not worried about loading time - I'll concatenate it back into one file before deployment.</p>