Add JoinHtmlOutput middleware