BarcodeScanner: align JS with cordova.require