Barcode application in phonegap