Move createIframe and waitForAssets(doc) into IframeUtil