adding remove button only when there is a word present
removeWord function initially working
deleting old clearCurrentWord function
refined removeWord function. inserting the button and removing it when it makes sense to do so
fixing save button on the screen
adjusting printWord to first remove words - refactored to call removeWord() function
checkpoint for overwriting word - case where the end of the word overlaps with another longer word
completed fixing overwriting behavior where any part of the selected word overlaps with another word
fixed event bubbling in Firefox