const recentChanges = (function() { const dialogEl = $("#recent-changes-dialog"); async function showDialog() { glob.activeDialog = dialogEl; dialogEl.dialog({ modal: true, width: 800, height: 700 }); const result = await $.ajax({ url: baseApiUrl + 'recent-changes/', type: 'GET', error: () => error("Error getting recent changes.") }); dialogEl.html(''); const groupedByDate = groupByDate(result); for (const [dateDay, dayChanges] of groupedByDate) { const changesListEl = $('