update barcodescanner.js