setting value via javascript instead of as an html string