UI code cleanup: Fix trailing commas in JS