document.getElementById("id").innerHTML doesn't work but console.log does. Why?