ui.js clean up.