improve package.json and index.js