Some minor JS changes