Well you want the `contactsIframe.contentWindow` right?
I think this should work.