update to cordova3 style