Put back setValue()

- Put back setValue function removed in a js refactor.
Merge pull request #22 from jonathansimmons/master

Put back missing setValue function