Added loadHtml function