define(['codemirror', 'matchbrackets', 'continuecomment', 'javascripthint', 'javascriptmode'], function() {
    function initEditor($e) {
        return CodeMirror($e.get(0), {
            value: "function effect(cube) {\n    cube().off();\n}",
            mode: 'javascript',
            indentUnit: 4,
            lineWrapping: true,
            lineNumbers: true,
            matchBrackets: true
        });
    }

    return initEditor;
});

define(['codemirror', 'matchbrackets', 'continuecomment', 'javascripthint', 'javascriptmode'], function() {
    function initEditor($e) {
        return CodeMirror($e.get(0), {
            value: "function effect(cube) {\n    cube().on();\n}",
            mode: 'javascript',
            indentUnit: 4,
            lineWrapping: true,
            lineNumbers: true,
            matchBrackets: true
        });
    }

    return initEditor;
});

Make default code more sensible (on instead of off)
Make default code more sensible (on instead of off)

Probably should use a proper template here, though.
