upgraded to cordova 3.x