Syncronize javascript calls
<p>I have 2 scripts</p>

<pre><code>script1 = function(){
      //takes very long time
}


script2 = function(){
      //takes less time
}
</code></pre>

<p>i want to ensure that script2 should run after script1 is complete??? </p>
