add index.js as main for component

add build dir to .gitignore
Merge pull request #1 from ericgj/fix-component

fix component setup