if (typeof instance === "undefined") {
var instance = {
SetVar: function (name, value) {
console.log("Simulating instance.SetVar: " + name + " = " + value);
},
Log: function (message) {
console.log("Simulating instance.Log: " + message);
}
};
}
function...