updated package json and modified index.js