JBIDE-14506 CordovaSim: Implementing cordova plugin support. Moving BarcodeScanner plugin to separate .js file