Fix for Firefox doesn’t work #1

Firefox now works correctly for window.onbeforeunload event. So limiting alert message for firefox >= 4 and < 32.