splitted events.js module