[IMP] barcodes: refactored of the javascript implementation: use the standard api to load the nomenclature and rules