added mocha-jshint "unit test" and cleaned up jshint issues