update (some) values in the value_set, refactor js