add plugin BeforeUnload
Merge remote-tracking branch 'origin/master'