add license, run jshint on npm test, remove "extend" dependency