BSON Parser for node and browser