Add Event handler to server.js