corrected scrolling in texlib.js

Now texlib.js automatically scrolls to bottom when output is added
(assuming that it was at the bottom before the output added).