A unified event system for the web platform