element.scrollTop = 0; will let you get to the element's scroll top:
var el = document.querySelector('div');
el.scrollTop = el.scrollHeight;
setTimeout(function(){
el.scrollTop = 0;
}, 500);
div{width:200px; height:200px; overflow:auto;}
<div>
<br>Top-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-
</div>
Please try this:
window.scrollTo(0,0);
Give an id to your div. And then:
var myDiv = document.getElementById('yourdivid');
myDiv.scrollTop = 0;