Prevent onbeforeunload from firing if Submit button is clicked