Update server.js

added console.logs