* refined server.js (some more eventhandlers)