refactoring server.js
refactoring général