Referencing DOM element for storing selected word