got codemirror and modes/addons working with requirejs; started customizing codemirror a bit; found the 'change' event trigger