updated component.js