Test JavaScript BSON