updated to use latest cordova.exec syntax
updated to latest syntax for 2.8