Update plugin to Cordova 3