// pairs: (HTML text, false=left/true=right)
sS htmlForJLabel_chatConvo(LPair dialog, int width) {
ret hhtml(div(lines(mapPairsToList(dialog, (content, right) -> {
S color = right ? "#9999FF" : "#99FF99";
ret div(span(content, style := "background: \*color*/>),
style := "margin-bottom: 5px; margin-" + (right ? "right" : "left") + ": 20px; padding: 2px");
})), +width));
}