Moved to mocha, fixed jshint and some cleanup