Create different type of barcodes with javascript