Script becomes unresponsive crashing firefox
<p>Why does this script cause an error on submit in firefox?
It is using jquery.</p>

<pre><code>$(document).ready(function(e) {
    $('#errorMessage').hide();
    $('#form').submit(function() {

        var firstname = $('#formFirstname').val();

        if(firstname == '') {
            $('#errorMessage').html('Please enter your Name.');
            $('#errorMessage').fadeIn();
        }

        else {
            $('#errorMessage').html('Please wait a moment as the form Submits.');
            $('#form').submit();
        }
        return false;
    })
});
</code></pre>
