Code to decode qr cores using cordova