replacing direct reference to caretHTML