fix bar code scanner for cordova 2.6,2.7+

Files changed for new version of guideline plugins for cordova 2.6+, example included