BTW, we should pass the `threadDOM` to `createThreadContainer` and append it in `createThreadContainer`.