Move iframe document setup to IframeUtil.