function serialize (obj) {
var str = '';
for (i in obj) str += (i + ': ' + obj[i] + ', ');
return str;
}
function deserialize (str) {
var obj = {};
a = str.split(', '), i = a.length;
while (i--) obj[a[i].split(':')[0]] = a[i].split(':')[1]
return obj;
}