should we sanitize cached div here? (eg cachedDiv.innerHTML = '') does anything else use it? perhaps it should be declared down here.