revert define event.js