Bugfix: changed innerText to $ text for firefox