JS - Fix trailing commas