Mickael -- rewrote Mongoosastic.js file