Mongoose-like schema validation, collections and documents on browser (client-side)