Put several .js files under a scope
<p>I have a few large js files which functions and objects are living in the global scope and have function calls between them. Is there a relatively easy way to put them under local scope.</p>

<pre><code>&lt;script src="fileA.js"&gt;&lt;/script&gt;
&lt;script src="fileB.js"&gt;&lt;/script&gt;
&lt;script src="fileC.js"&gt;&lt;/script&gt;
</code></pre>

<p>I've tried putting <code>(function(){</code> at the beginning of the A file and  <code>})();</code> at the end of the last one but it doesn't work. </p>

<p>10x for your kind help BR</p>
