I suggest using the window.onload event to do the exact same thing you are doing in that function call It should look something like this:
window.onload = function() {
myScroll.scrollToElement(document.querySelector('#scroller li:nth-child(50)'), null, null, true);
}
here are more details about the onload event (you can even attach it to html elements)