const element = document.getElementById(elementId);
console.log(element);
const elementRect = element.getBoundingClientRect();
const absoluteElementTop = elementRect.top + window.pageYOffset;
const middle = absoluteElementTop - (window.innerHeight / 2.3);
window.scrollTo(0, middle);