Put back missing setValue function

- Put back setValue() function that was removed in a js refactor.