adding index.js and updated package.json