Adding in jshint mocha tests
Fixing linting errors