very simple event system for browsers.