Update mongoose-history.js