Update mongoose.js