"+message+"
"; conversation.scrollTop = conversation.scrollHeight; } function displayHeard(message) { conversation.innerHTML += ""+message+"
"; conversation.scrollTop = conversation.scrollHeight; document.getElementById("message").value = ""; } function sendTypedMessage(keyCode) { if(keyCode!==13) return; var message = document.getElementById("message").value; assistant.hear(message); }