Expand JS vows test coverage

More vows tests of the javascript elements.

I also modified some of the old tests after reading through the vows documentation.