Debug JS that works in Chrome but not FF or IE
<p>The following code works fine in Chrome but does nothing in FF and IE. How can I debug this? The way that Im developing locally means I cant make my code publicly accessible. </p>

<pre><code>$(document).ready(function () {
       // alert('dfd');
        $('#mobileMenuLink a').click(function () {
            event.preventDefault();
            // alert('dfd');
            $('#menu').toggleClass('mobileMenuOpen');
        });
    });
</code></pre>
