add scrollback javascript