Javascript based Mongo DB parser