Fix rendering comment added via JS (ajax or SSE)
Basically the HTML generated in the JS wasn't in synced with the html
used by the regular templates.
This commit fixes that.
Fixes https://pagure.io/pagure/issue/3938
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>