updated to support cordova 3.1.0