grr duplicate setting in js and html.