begin component.js