Added comments to component.js