small and simple event framework for the browser