Bug in server/server.js