Uncaught SyntaxError: Unexpected token 
<p>I have code like this:    </p>

<pre><code>$(function(){
  $('.plus').click(function(){ 
  var url = "/accounts/profile/update_thing/" + $(this).parent().attr('id') + "/",
  $.getJSON(url, function(data){
var items = []

  $.each(data, function(key, val) {
    items.push('&lt;li id="' + key + '"&gt;' + val + '&lt;/li&gt;');
  });

  $('&lt;ul/&gt;', {
    'class': 'my-new-list',
    html: items.join('')
  }).appendTo('body');
});  })  
})
</code></pre>

<p>And Chrome code spectrator saying that i have Uncaught SyntaxError: Unexpected token . in line 4. But I don't know why. Does someone knows what is about?</p>

<p>Ps. Is it normal that I haven't text editor on this site?</p>
