add jshint rules, remove need for 'require(jquery)' statements, add sample mocha test