added cross-browser "innerText" so it works in firefox