add jshint and implement unit tests
travis