Javascript equivilent of Python's include
<p>I'm hunting for the equivalent of Python's import statement. </p>

<p>I'd love for the following to work:</p>

<pre><code>&lt;head&gt;      
    &lt;script type="text/javascript" src="foo.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        function useBar(){
            alert(foo.bar());
        }
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;button type="button" onClick="useBar();"&gt;Bar&lt;/button&gt;
</code></pre>

<p>What would foo.js look like, and would I have to do anything additional in the html page to make it work?</p>
