[spec] add barcodescanner.js