I just provided two links that will enable you to read barcodes via javascript. This is enabled via a phonegap plugin which will handle the native code for you but provide a javascript interface to its capability.

My advice is for you to click the links, read the contents, then determine if it will help you accomplish your goals. If after doing that you feel it does not satisfy your goals, please reply with a better description of what you're trying to accomplish.

Barcode scanner with sencha cordova / phonegap 2.7 Android and Iphone

After watching your videos on how to use plugins I had some questions maybe you had solutions for.

The top comment Mike noted that for iOS there is no Cordova.plist, I have added the <plugin name="BarcodeScanner" value="CDVBarcodeScanner" /> to the config.xml

I suppose my question to you is. Have you tried using the barcode plugin with phonegap 2.2 or greater? If so, are there any steps you do out of the ordinary from the tutorial vid or the instructions from github? (I ran into some errors with ARC too) I will try again from scratch hopefully with more success.