added ability to write out the iframe to the script tag