wrapping innerText calls in helper function