function createPopup(event, info) {
let popup = document.createElement('div');
popup.className = 'singleWordInfoPopup';
popup.innerHTML = info;
/// TODO: when near the browser window edge this can create an element that partially spills outside of the DOM
popup.style.position = 'absolute';
popup.style.left = (event.clientX + window.scrollX - 100) + 'px';
popup.style.top = (event.clientY + window.scrollY + 15) + 'px';
document.body.appendChild(popup);
document.addEventListener('click', function(event) {
document.removeEventListener('click', this);
popup.remove();
});
}