Generate component.json from javascript source