Javascript - Uncaught SyntaxError: Unexpected token <?
<p>Javascript: </p>

<pre><code>jQuery(document).ready(function() {
    jQuery('#submit').click(function() {         

        jQuery("#LoadingImage").show();

        var imgSrc = 'http://foo.com/gen.php?username1=' + jQuery('input[name=username1]').val() + '&amp;amp;username2='+ jQuery('input[name=username2]').val();

        jQuery('#imgRESULT').html('&lt;img id="image1" src="' + imgSrc + '" &gt;');
    });

    $('#image1').on("load", (function() {
        $("#LoadingImage").hide();
    });
});
</code></pre>

<p>With the html being</p>

<pre><code>&lt;div id="LoadingImage" style="display: none"&gt;
&lt;img src.... /&gt;&lt;/div&gt;​&lt;div align="center" id="imgRESULT"&gt;&lt;/div&gt;
</code></pre>

<p>and with the correct inputs etc.</p>

<p>But going into the console I get:</p>

<p><img src="http://i.stack.imgur.com/57vFu.png" alt="error"></p>

<p>(Uncaught SyntaxError: Unexpected token &lt;)</p>

<p>I can't seem to see how to get this script working.
Any input?</p>
