client js fixes