removed unnecessary deferred usage from server.js