new approach

http://community.phonegap.com/nitobi/topics/_barcodescanner_plugin_upgra
ding_scanner_javascript_api_code_changes_required