Added a function to remove iFrames onbeforeunload