return the entire block of html for the js call