modified the JS spec and JS test for barcode