Fix to js folding