Run functions in different files
<p>I've several JS files; the first one is a library to be used by the next ones, and every one of those another files have a function <em>main()</em> which calls the functions of that file.</p>

<p>lib.js => library</p>

<p>a.js :: main() => call functions in a.js<br>
b.js :: main() => call functions in b.js<br>
...<br>
...  </p>

<p>So, I would want that were run the function <em>main</em> for those files (after of loading <em>lib.js</em>).</p>

<p>How do run each function <em>main</em> after of loading the JS file?<br>
It would be load <em>a.js</em> and run <em>main</em>, load <em>b.js</em> and run <em>main</em>, ...</p>
