refactor _Overlay globalEventsListener from a JavaScript Object Literal into a private class.