This is a barcode generator that works even though it could be improved in many ways. To test it out, use a barcode scanner app to scan a product, then enter the UPC number in the fields. Both barcodes should return the same product.
BarCodeSee the Pen by npsantini (@npsantini) on CodePen.