The .concat() method does not modify the original string; instead it returns a new string which you assign to the variables upd and add, which you both immediately discard. Actually you might just append the values using +=, which is probably what you want… alternatively you might .reduce() the Object.keys() like so:
var value = Object.keys(originals).reduce(function (result, current) {
if (originals[current]) {
result += current
}
return result
}, '')