Javascript Unexpected token if
<p>Getting error message saying Unexpected token if here</p>

<pre><code>   $(document).ready(function()
----&gt;  if(location.hash.length == 0)
    location.hash="!/"+$('#content &gt; ul &gt; li').eq(2).attr('id');
}
</code></pre>
