added index.js and main field in package.json