changes for cordova v 3.1