modalOverlay.onclick = function(event) {
if (event.target != modal) {
modalOverlay.classList.toggle('active')
}
}
modalOverlay.onclick = function(event) {
if (event.target.contains(modal)) {
modalOverlay.classList.toggle('active')
}
}