Dynamic key naming is possible, but not like (var x = "foo"; var y = { x: "bar" }) more like (var x = "foo"; var y = {}; y[x] = "bar";)