Is there any way how to distribute constructor to two files?
<p>I'm working on data core of application. I need to construct a few collections in one namespace like this:</p>

<pre><code>var Core = function(){
   this.firstCollection = [];
   $.extend(true, this.firstCollection,{
      method1: function(){
         alert("working with firstCollection");
      }
};
var core = new Core();
</code></pre>

<p>Is there any elegant way, how to distribute the constructor into separated files for better maintenance? I want to use a pure JavaScript, no compiled one such Coffee/Dart.</p>

<p>Distribute into separated files means workaround like this:
file1:</p>

<pre><code>var obj = obj||{};
obj.firstAttribute = "first";
</code></pre>

<p>file2</p>

<pre><code>var obj = obj||{};
obj.secondAttribute = "second";
</code></pre>
