Fixed the iframe window reference so it works on all browsers.