bit of code cleanup in server.js