Update README
Encode folding groups
Update demo.js