update components to commonJS syntax