added jshint and test