Learning to create a small barcode scanner phonegap app