Refactoring server.js
Refactoring server.js