salve,
cosa c'è di errato sintatticamente in:
document.scrollTo(0,document.height);