jshint, test refactor

- .jshintrc with mocha related globals 
- moved assertion definitions to test_setup.js

btw should we run jshint in the test script?