Use 'main' attribute in package.json

This attribute allows Node to determine the entry point of the module
based on its root directory, making the module easier to consume by
third parties.