add index.js to component.json