cordova.define('cordova/WifiInfoPlugin', function(require, exports, module) {
    var exec = require('cordova/exec');

    var MyOwnPlugin = function() {};

    MyOwnPlugin.prototype.managewifi = function(onSuccess, onFailed) {
       exec(onSuccess, onFailed, 'WifiInfoPlugin', 'managewifi', []);
    alert('here');
    }

    module.exports = new MyOwnPlugin();
});

@@ -17,16 +17,23 @@
 cordova/
+plugin/
 WifiInfo

Update WifiInfoPlugin.js