Simple barcode scanner using phonegap