title: Uncaught SyntaxError: Unexpected token ILLEGAL and SyntaxError: unterminated string literal
body: <p>I have below code:</p>
  
  <pre><code>&lt;!Doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"&gt;    &lt;/script&gt;
  &lt;script type="text/javascript" src="uploadify/jquery.uploadify.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  function deleteFile(file_name) {
      alert("Hello " + file_name);
  }
  
  $(function() {
      $('#file_upload').uploadify({
          'removeCompleted' : false,
          'fileTypeDesc' : 'Image Files',
          'fileTypeExts' : '*.gif; *.jpg; *.png',
          'method'   : 'post',
          'queueSizeLimit' : '5',
          'swf'      : 'uploadify/uploadify.swf',
          'uploader' : 'uploadimage.cgi',
          'uploadLimit' : '5',
          'onUploadSuccess': function(file, data, response) {
              $(".imgpreview").append("&lt;img src=\"" + data + "\" id=\"i" + file.id + "\" height=\"100px\" width=\"100px\" /&gt;&lt;a onclick=\"alert('" + data + "')\"&gt;X&lt;/a&gt;");
          },
      });
  });
  &lt;/script&gt;
  &lt;link rel="stylesheet" type="text/css" href="uploadify/uploadify.css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;input type="file" name="file_upload" id="file_upload" /&gt;
  &lt;div class="imgpreview" id="imgpreview" style="height:100px;width:500px;border:2px solid;"&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here after uploading the image when 'X' appears beside the images on the screen. After clicking on the link 'X' I am receiving "Uncaught SyntaxError: Unexpected token ILLEGAL" in Chrome and "SyntaxError: unterminated string literal" in Firefox. Please help in finding mistake.</p>