add license, run jshint on npm test, fix missing semicolon