title: Uncaught SyntaxError : Unexpected token ;
body: <p>I am getting <code>Uncaught SyntaxError: Unexpected token ;</code> at  <code>THE LINE NUMBER</code></p>
  
  <pre><code>    // HTML Helper
      var documentHtml = function(html){
          // Prepare
          var result = String(html)
              .replace(/&lt;!DOCTYPE[^&gt;]*&gt;/i, '')
              .replace(/&lt;(html|head|body|title|meta|script)([s&gt;])/gi,'&lt;div class="document-$1"$2')
              .replace(/&lt;/(html|head|body|title|meta|script)&gt;/gi,'&lt;/div&gt;')
          ;  // &lt;&lt; THE LINE NUMBER 
          // Return
          return $.trim(result);
      };
  </code></pre>
  
  <p>Not sure what is wrong.</p>