Changed the toSuccessCalbackString to toErrorCallbackString when there is an error.
Tested with Cordova 2.6.0 and iOS 6.1.2
Merge pull request #11 from Riball/master

Changed the toSuccessCallbackString to toErrorCallbackString