Why the switch? Also, consider using textContent instead of innerText. (great post: http://kellegous.com/j/2013/02/27/innertext-vs-textcontent/)