Upgraded plugin for Cordova 3.x