More UI.js and Editor refactoring.