var map = document.querySelector("#map");
map.addEventListener("click", function(event) {
var x = event.offsetX / map.offsetWidth;
var y = event.offsetY / map.offsetHeight;
var container = document.querySelector("#container");
container.scrollLeft = x * container.scrollWidth;
container.scrollTop = y * container.scrollHeight;
});