This function defines an HTML element. document.getElementById returns the complete function, not only the h1 element as expected. How I only write what's inside of the two ` (return value).
function tokens() {
return `
<h1>test</h1>
`;
}
document.getElementById('tokens').innerHTML = tokens;