Javascript : calling function from another file
<p>I'm just new comer at Javascript so when I read a Javascript document, and there're many complex structures that I cannot follow.</p>

<p>Here is the short explanation of Javascript code that I'm reading : in my case there are two main files : <code>Helper.js</code> and <code>Circle.js</code>. </p>

<p>In Helper.js, there is a method name :<code>using:function(param1,param2)</code>. And below is code for <code>Circle.js</code>:</p>

<pre><code>Helper.using('py.Figures', function (ns) {

    ns.Circle = function (params) {
        // some additional methods and code here
    }

    ns.Alert = function(){   // for the test purpose
           alert('hello');
    }
});
</code></pre>

<p>And in file test.html, I write some code like this :</p>

<pre><code>&lt;script src="Helper.js"&gt;&lt;/script&gt;
&lt;script src="circle.js"&gt;&lt;/script&gt;
&lt;script&gt;
   test = function(){
        py.Figures.Alert();  // calling for testing purpose
   }
&lt;/script&gt;
&lt;body onload="test();"&gt;&lt;/body&gt;
</code></pre>

<p>When I run on Chrome and view in console, I meet this error : </p>

<blockquote>
  <p>Uncaught TypeError: Object # has no method 'Alert'</p>
</blockquote>

<p>It means I haven't import those class, yet. Please tell me how to calling function from another file. In my case is : calling <code>Alert()</code></p>

<p>Thanks :)</p>

<p>@ Edit: I have added some links for the code : </p>

<p><a href="http://pastebin.com/dsaLZKcE" rel="nofollow">Helper.js</a></p>

<p><a href="http://pastebin.com/3YS76Qv1" rel="nofollow">Circle.js</a></p>
