improved document scrolling
update demo