Got mocha tests running, though they fail...
fix some jshint and test issues