Small and simple JavaScript event system.