jQuery Improper Syntax
<p>I'm really new to jQuery and I'm trying to get a script to work. I didn't write the script, I got it from here: <a href="http://webdesignerwall.com/tutorials/mobile-navigation-design-tutorial" rel="nofollow">http://webdesignerwall.com/tutorials/mobile-navigation-design-tutorial</a></p>

<p>The script works on my localsetup, but doesn't work on my live site.  There is an error showing up in chrome, and I think it may be related to this script, because it shows up on the site of the person who wrote it as well.</p>

<pre><code>&lt;script type="text/javascript"&gt;
jQuery(document).ready(function($){

    /* prepend menu icon */
    $('#nav-wrap').prepend('&lt;div id="menu-icon"&gt;Menu&lt;/div&gt;');

    /* toggle nav */
    $("#menu-icon").on("click", function(){
        $("#nav").slideToggle();
        $(this).toggleClass("active");
    });

});
&lt;/script&gt;
</code></pre>

<p>Anyone see the error with this script? It looks fine to me, everything seems to be properly closed.</p>

<p>EDIT:</p>

<p>Error:
Uncaught SyntaxError: Unexpected token ) <a href="https://xarhosting.com/:17" rel="nofollow">https://xarhosting.com/:17</a>
    * Auto-Reload: Content-Script loaded chrome-    extension://hcelohhcooepfkolgbieponejnhpemja/content.js:38
    Auto-Reload: state: false chrome-extension://hcelohhcooepfkolgbieponejnhpemja/content.js:14</p>

<blockquote>
  <p>auto-reload: none scheduled </p>
</blockquote>

<p>I'm not 100% sure the error is caused by the jQuery script, but the error goes away when I remove the script.</p>
