update to server.js