Changed javascript to use .textContent instead of innerText for firefox
support and w3c compliance.