You could loop through another object:
var thingsToAdd = {
color: "blue",
font_size: "30px"
};
for (var x in thingsToAdd) someVar[x] = thingsToAdd[x];
Or, you could use with
(WARNING: this is ALMOST CERTAINLY a bad idea! See the link. I am only posting this for educational purposes; you should almost never use with
in production code!):
with (someVar) {
color = "blue";
font_size = "30px";
}