adding the javascript to get the generated HTML until I can find a way to copy to clipboard'