Basic scrolling implementation in ui.js