I want to insert a large chunk of html into a pre-existing
Javascript doesn't have good support for multi-line strings or HEREDOC syntax, but there are a few workarounds. Add a backslash "\" to the end of each line to let the script engine know you are continuing onto the next line without finishing: Use an XML CDATA hack(http://mook.wordpress.com/2005/10/30/multi-line-strings-in-javascript/):. I am using this method:
$(\"td#content\").html(LOTS_OF_HTML_CODE_HERE);