add index.js and component.json