setButton = (button, disabled) => {
    button.setAttribute('aria-disabled', disabled ? 'true' : 'false');
    button.style.opacity = disabled ? 0.5 : 1;
  }
Update the state of scroll up/down buttons.

If the viewport is at the top or bottom row of output, these buttons will
be made transparent and clicking them shouldn't scroll any further.