Not able to call function present in another script
<p>I have two script's </p>

<p><strong>test.js</strong></p>

<pre><code>$(document).ready(function() {
    hello();
}); 
</code></pre>

<p><strong>anotherscript.js</strong></p>

<pre><code>$(document).ready(function() {
    function hello() {
        alert("!"));
    };  
}); 
</code></pre>

<p>If <code>hello()</code> is called exception is thrown saying hello is undefined. How should i make the call then ?</p>
