fix jshint and test. #2