title: javascript unexpected identifier
body: <p>I am trying to compress my JavaScript code to get less traffic on my site. It has been working fine, but now I came across an error I can't resolve.</p>
  
  <p>I turned my ajax function into one line:</p>
  
  <pre><code>function(){if(xmlhttp.readyState==4&amp;&amp;xmlhttp.status==200){document.getElementById("content").innerHTML=xmlhttp.responseText;}}xmlhttp.open("GET","data/"+id+".html",true);xmlhttp.send();}
  </code></pre>
  
  <p>But the chrome console tells me there is an unexpected identifier on this line. Firefox says there is an semicolon missing on this line.</p>
  
  <p>I have been trying to figure out what is wrong, but I can't find the error, can someone help me with this?</p>