Update javascript bob tests and implementation to match