minor js fixes