Bring javascript/bob tests closer to parity with ruby/bob.

I left a couple out as I didn't want to modify the existing javascript example.