Added QUnit testing

Dealing with issue #3

Beginning to write tests that will run with Grunt during development, and can be run in-browser directly to maximise compatibility testing, and to encourage test-driven development moving forward.