Removed unnecessary uses of the window object in iframes