add component and index.js files