add LICENSE, run jshint on npm test, fix jshint warns