Add support for horizontal scrolling in 'scrollIntoView' in ui_utils.js