I totally agree with you - aloha.js is the implementation of the editor. there should not be aloha-ui.js AND aloha.js - there should just be editor.js which is used inside aloha.js inside sandbox/ui. Currently require-pronto keeps us from doing that as we'd end up with the same bug which kept me busy all day. I tried to switch to requirejs, which failed horribly. Even though that's bad I very much prefer to stick with pronto and fix it, so this is the next step I want to take.