event.js used by server.js