some other client js fixes