(some) Bugs fixed. Collapsibility now works.

(It turns out that multi-line strings are not supported in JS).