Use client side unit testing

QUnit used to test script in a browser: allowing testing of JQuery
dependent code.