I had recurring problems myself with the text not being scrolled properly. Quite maddening...
You can invoke the internal scroll function by calling:
JS.scrollToEnd()
That calls the same JavaScript function that normal text output calls (which doesn't always work for some reason, but calling it yourself can help).