This BSON parser is primarily meant to be used with the mongodb node.js driver.
However, wonderful tools such as onejs can package up a BSON parser that will work in the browser.
The current build is located in the browser_build/bson.js file.