JavaScript/JSON/MongoDb/Mongoose to XML conversion