Creating a cordova plugin with passing JSON back in PluginSucess