Changing words wasn't working in Firefox. Now using w3c compliant
target.textContent rather than target.innerText