Basic setup for package.json

- now use index.js rather than main.js