The ID Should have the id of the corresponding div that has the overflow css property.
document.querySelector('#YOUR_OVERFLOWED_DIV').scrollTop = 0;
Another way to do it with a smooth animation is like this
$("#containerDiv").animate({ scrollTop: 0 }, "fast");
For those who still can't make this work, make sure that the overflowed element is displayed before using the jQuery function.
Exemple:
$('#elem').show();
$('#elem').scrollTop(0);