Code in External jquery file does not get fired without an alert
<p>I have an external js file that needs to get fired when a certain element is clicked. This code is inside the ready function. When I have an alert statement inside the ready function everything works fine. but when I remove the alert, 
the ready function is not getting called. What could possibly be the reason for this strange behavior?</p>

<pre><code>alert()
    $(".monthChanger span").click(function (event) {
            event.stopPropagation();
            $(".monthChanger span ul").show();
        });
</code></pre>

<p>without this alert call the above code does not get fired. This code is inside the ready() function</p>
