Use proper “main” property.
Fix component.json style.
Merge pull request #322 from paulmillr/patch-1

Use proper “main” property.