Update server.js

Almost finished