reformat client js