Simplify by using
Merge pull request #2 from nickb1080/master

Simplify by using 'iframe.contentWindow'