var obj = function (_obj) { _obj["x" + foo] = "heh"; _obj["y" + bar] = "noo"; return _obj; }({});