removing index.js and adding a main module to package.json