update index.js and package.json