duplicate main in component.js