js fixes