Add javascript for MongoDB connection