why define function inside $()?
<p>I came across a public JavaScript fragment that has the following lines of code:</p>

<pre><code>$(function() {
    var v1, v2;
    v1 = new V1;
    return v2 = new V2(v1);
});
</code></pre>

<p>The guts of the function are perfectly grokkable.  But what is the significance of wrapping this in a <code>$()</code>?</p>
