component.js fixes