Add component.json and js source.