(function() {
var config = {
    paths: {
        jquery: 'external/jquery',
        'jquery-ui': 'external/jquery-ui',
        'd3': 'external/d3/d3',
        FileSaver: 'external/FileSaver',
        caret: 'external/caret',
        autocomplete: 'external/autocomplete',
    }
}
config.urlArgs = local_config && local_config.urlArgs;


if (window.is_node) {
    // Testing path only
    console.log('app: running under node');
    config.baseUrl = '../scripts/';
    window.rhizi_require_config = config;
} else {
    // Main app path
    require.config(config);

    requirejs(['main'], function(main) {
        console.log('starting rhizi logic');
        main.main();
    });
}
}());

@@ -290,16 +290,24 @@
 rlArgs =
+ (typeof
  local_c
@@ -311,16 +311,32 @@
 l_config
+ != 'undefined')
  && loca
@@ -354,17 +354,16 @@
 lArgs;%0A%0A
-%0A
 if (wind

fix borked tests - must use typeof to avoid exception on undefined variable