Add QUnit tests and link into front page
Fix (majority of) JSLint errors
Use function form of 'use strict' to remove last JSLint error