Update ui-base.js