Reconstructing jet-jet invariant masses