function pair(name,value) { this.name = name; this.value = value; this.toString = function () { return "{"+this.name.toString()+": "+this.value.toString()+"}"; } }