Basic QR Scanner code for Phonegap