restructuring of events management...

... to not have any behaviour conflicts with some other plugins or specific code.

See this comment : https://github.com/vast-engineering/jquery-popup-overlay/commit/becaee80279a39a93dcff542d8ddc8486189833a#commitcomment-6015366