var WifiInfo= function() {
};
var cordova = require('cordova'),
    exec = require('cordova/exec');
WifiInfo.prototype.get = function(success, fail) {
		exec(success, success, 'WifiInfoPlugin', null, [] );
};

cordova.addConstructor(function() {

	if (!window.wifi) {
		window.wifi = {};
	}
	window.wifi.WifiInfo = new WifiInfo();
});

@@ -1,126 +1,15 @@
-var WifiInfo= function() %7B%0A%7D;%0Avar cordova = require('cordova'),%0A    exec = require('cordova/exec');%0AWifiInfo.prototype.get
+%0Amanagewifi
  = f
@@ -35,16 +35,24 @@
 il) %7B%0A%09%09
+cordova.
 exec(suc
@@ -57,23 +57,20 @@
 uccess, 
-success
+fail
 , 'WifiI
@@ -85,145 +85,27 @@
 n', 
-null, %5B%5D );%0A%7D;%0A%0Acordova.addConstructor(function() %7B%0A%0A%09if (!window.wifi) %7B%0A%09%09window.wifi = %7B%7D;%0A%09%7D%0A%09window.wifi.WifiInfo = new WifiInfo(
+'managewifi', %5B%5D 
 );%0A%7D
-)
 ;%0A

Update WifiInfoPlugin.js