fix ios crash when scanning 2x

Fixes #5
was a problem with Cordova 3.5.0-0.2.4 but not 3.6