Nit: consider putting the <p> tag in markup and using textContent instead.