Extend IJsDialogHandler To Include OnBeforeUnload Dialogs

Extended IJsDialogHandler to catch on OnBeforeUnload Javascript Dialog messages.

This should fix the issue with #712