update package.json and index.js