Adding codemirror to AngularJS editor controller via RequireJS