minor JS changes