Added plugin implementation for cordova 3.1.*