use document.createElement in result_add_group for consistency