making clearSelection into a normal method of the highlighter plugin