Update lib/component.js