Updated component.js