update component.js