try{ Widget.Memo = function () { this.Count = 0; } Widget.Memo = function toString() { return this.Count; } Widget.Memo = function getValue() { return this.Count; } Widget.Memo.prototype.Count = 0; Widget.Memo.prototype.toString = toString; Widget.Memo.prototype.getValue = getValue; Widget.Memo.prototype.getCount = function(){ return this.Count; } Widget.Memo.prototype.getNewImg= function(){ return ""; } } catch(exception){}