UI: js cleanup