Convert CommonJS to the ES javascript module system
Convert all javascript from the currently adopted CommonJS to the ES javascript module system.
This will then allow to run appropriate Mocha
test for all the javascript components and provide test coverage with c8