update plugin to cordova 3