add package.json and update /lib/index.js