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