Fixed error in mongo.js