js : folding