loadIframe: clean code, use prototype