updated jshint and dded karma reference
wrote test