Pre-process the data passed to javascript (#3); red arrowhead to indicate multi-select relationships (#1)