Updates the component lib to use commonJS style of code
Merge pull request #605 from janhancic/develop-convert-component-pkg-to-commonjs

Updates the component lib to use commonJS style of code