Sherminator,
Fx.Wrap = function (obj) {
var out = "";
for (var prop in obj) {
if (obj.hasOwnProperty(prop) && obj[prop] != undefined) {
var k = obj[prop];
if (typeof k == 'object') {
k = this.Wrap(k);
}
out += '<div>' + prop + ': ' + k + '</div>';
}
}
return out;
};