Switch to using a iframe instead of a document created using `createHTMLDocument`