Implemented text node selection using jQuery.