Barcodes in PHP and JS