Can now insert a span dynamically at end of highlighted text