Correct function name in error messages
Migrating to Cordova 3 : callbacks and returns