Phonegap project with barcodescanner plugin