modified the barcode js spec