adds a javascript module onto the iframe header