Added type attribute to dynamically created iframes