[all] Don't use "this" in cordova.js (use local reference instead)

Makes the code a bit safer