updates to server.js

updates to server.js