QUnit Tests

This is an initial commit of some qunit-based tests to ensure that main.js does what you are expecting it to.  It is not complete, but it is a good start.  All tests are currently passing for me on "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1541.2 Safari/537.36"

I should note that I'm unlikely to spend any more time developing any more tests for this project, that's something you would need to take on yourself.