Repair onunload event to warn user if they have unsaved changes.
Merge pull request #30 from oerpub/fix-beforeunload-56664508

Repair onunload event to warn user if they have unsaved changes.