misc js fixes