add first pass at javascript autoscroll