LPS-48804

HtmlUtil.escapeJS() worked, but it had the same bug that HtmlUtil.escape() probably had in the original implementation in that the commas inside of a primary key were treated as a delimiter and a table with two rows often had many more IDs. Using JSONArray.toString() instead to address that issue.