refine JS