Added the selectText function to the dom module which will select the text of an element.