BeforeUnloadEvent is not available on older browsers