adding cordova js for barcode scanner functionality