define(['jquery'], function($) {
    // https://github.com/josscrowcroft/javascript-sandbox-console
    function init($e, editor) {
        var frame = $('<iframe width="0" height="0"/>').
            css({visibility: 'hidden'}).
            appendTo('body')[0];
        var sb = frame.contentWindow;

        sb.frame = frame;

        return sb;
    }

    function evaluate(sb, value) {
        return sb.eval(value);
    }
    init.evaluate = evaluate;

    function load(sb, src) {
        var script = document.createElement('script');
        script.type = 'text/javascript';

        $.get('js/utils/' + src + '.js', function(d) {
            if(d.indexOf('define') === 0) {
                script.innerHTML = d.trim().slice(0, -2) + ', "' + src + '");';
            }
            else {
                script.innerHTML = d;
            }
console.log('loaded', src);
            sb.frame.contentDocument.body.appendChild(script);
        });
    }
    init.load = load;

    return init;
});

define(['jquery'], function($) {
    // https://github.com/josscrowcroft/javascript-sandbox-console
    function init($e, editor) {
        var frame = $('<iframe width="0" height="0"/>').
            css({visibility: 'hidden'}).
            appendTo('body')[0];
        var sb = frame.contentWindow;

        sb.frame = frame;

        return sb;
    }

    function evaluate(sb, value) {
        return sb.eval(value);
    }
    init.evaluate = evaluate;

    function load(sb, src) {
        var script = document.createElement('script');
        script.type = 'text/javascript';

        $.get('js/utils/' + src + '.js', function(d) {
            if(d.indexOf('define') === 0) {
                script.innerHTML = d.trim().slice(0, -2) + ', "' + src + '");';
            }
            else {
                script.innerHTML = d;
            }

            sb.frame.contentDocument.body.appendChild(script);
        });
    }
    init.load = load;

    return init;
});

Remove debug print