ui.js restored