javascript: adding NPM package support