WIP: Improve javascript test coverage

Working on improving the ``vows`` unit tests of the javascript code. On a somewhat related note, every line of Javascript I write makes me loathe it a little bit more :smile:

Totally off-topic, but have you seen this javascript gem?
``` javascript
> var L = ["10", "10", "10"]
> L.map(parseInt)
[10, NaN, 2]
```
It took me almost a full day to figure out why it does this.