Reverted back to cordova 3.1 to fix iOS support.