Updated plugin for cordova 3.0.0