How do I separate my JavaScript objects into multiple files
<p>I'm trying to separate my JavaScript into nice libraries. I have 2 companies under the net top-level-domain (net.foxbomb and net.matogen)</p>

<pre><code>var net = {
    foxbomb : {
        'MyObject' : function() {
            console.log ("FoxBomb")
        }
    }
}
</code></pre>



<pre><code>var net = {
    matogen : {
        'MyObject' : function() {
            console.log ("Matogen");
        }
    }
}
</code></pre>



<pre><code>var f = new net.foxbomb.MyObject();
var m = new net.matogen.MyObject();
</code></pre>

<p>Of course, I've just defined two nets - which doesn't work. What is the correct way to do this?</p>
