var Toast = function() {
};

// Call this to show toast notifications.
Toast.prototype.show = function(successCallback, errorCallback, options) {
    if (errorCallback == null) { errorCallback = function() {}}

    if (typeof errorCallback != "function")  {
        console.log("Toast.show failure: failure parameter not a function");
        return
    }

    if (typeof successCallback != "function") {
        console.log("Toast.show failure: success callback parameter must be a function");
        return
    }

    cordova.exec(successCallback, errorCallback, "ToastPlugin", "toast", options);
};
//-------------------------------------------------------------------

if(!window.plugins) {
    window.plugins = {};
}
if (!window.plugins.toast) {
    window.plugins.toast = new Toast();
}

if (typeof module != 'undefined' && module.exports) {
  module.exports = Toast;
}

var ToastMessage = {
    successCallback: function(response) {
        console.log(response);
    },
    errorCallback : function(error) {
        console.error(response);
    },
    show: function(message, time) {
        try {
            var options = [message, time];
            window.plugins.toast.show(this.successCallback, this.errorCallback, options);
        } catch(err) {
	       console.log("Toast"+err.message);
	   }
    }
};

@@ -874,447 +874,4 @@
 ;%0A%7D%0A
-%0Avar ToastMessage = %7B%0A    successCallback: function(response) %7B%0A        console.log(response);%0A    %7D,%0A    errorCallback : function(error) %7B%0A        console.error(response);%0A    %7D,%0A    show: function(message, time) %7B%0A        try %7B%0A            var options = %5Bmessage, time%5D;%0A            window.plugins.toast.show(this.successCallback, this.errorCallback, options);%0A        %7D catch(err) %7B%0A%09       console.log(%22Toast%22+err.message);%0A%09   %7D%0A    %7D%0A%7D;%0A

Update toast.js