js refinements