See if using getHtml after the dialog has loaded works