Add index.js and move component code to dist folder