Update to cordova 3.1