use textContent instead of innerHTML.  And, since you have this method here, remove the duplicate code above.