Put back setValue()

- Put back setValue function removed in a js refactor.