https://stackoverflow.com/questions/11508463/javascript-set-object-key-by-variable?noredirect=1&lq=1