fix jshint and tests