Is it good to write javascript functions inside functions and not use 'new' on the main function?
<p>I now know this works:</p>

<pre><code>function outerfunction(arg1, arg2, arg3) {
    var others;
    //Some code

    innerFunction();

    function innerFunction() {
        //do some stuff
        //I have access to the args and vars of the outerFunction also I can limit the scope of vars in the innerFunction..!
    }
    //Also
    $.ajax({
            success : secondInnerFunction;
        });

    function secondInnerFunction() {
        // Has all the same benefits!
    }
}

outerFunction();
</code></pre>

<p>So, I am not doing a 'new' on the outerFunction, but I am using it as an object! How correct is this, semantically?</p>
