update mongo.js