Refine client js