Make plugin Cordova 3.x compatible