Initial foray into JavaScript unit testing

JavaScript unit testing added via QUnit.