adds js dep to package.json