refactor util/event/event.js