[WIP] a couple of improvements to the js, no functional changes at all

we don't need to set this again here