Update server.js

Fixed json file loading for mongodb config