Update server.js

new code