Connected server to MongoDB, connected client side to service side also.
refactored geocoding function in app.js