Jet invariant mass in quantum chromodynamics