add unit test, karma, configuration files for jshint