Update component.js