Update barcodescanner.js