fix cut-and-paste error
add npm-module generation target and tests