You might be able to replace this with `listItem.attr(listItem.text())`... could you try it out locally and see if that gives the right tooltip?