Issue #3239132 by hooroomoo, larowlan, nod_, bnjmnm: Refactor (if feasible) uses of the jQuery trim function to use vanillaJS
Issue #3238863 by hooroomoo: Refactor (if feasible) uses of the jQuery merge function to use vanillaJS