[javascript] how to assign a block of html code to a javascript variable