Fixing require error

adding proper path to main instead of index.js to resolve require error. Directly requiring the file will work but violates convention.