ie fix for modal js self.close form onbeforeunload bug