Default package "main" to "index". Fixes #719.
Merge pull request #723 from pluma/npm-default-package-main

Default package "main" to "index". Fixes #719.