$(function() {

  var Settings = {},
    demo = new NetVis(Settings),
    SrcURL="lotr.netvis";

  $('#history').rangeslider();


  $("#reset-positions").click(demo.resetPositions);
  $("#play").click(demo.play);


  d3.json(SrcURL, function(error, json) {
  	if (error) {
  		demo.View.Logger.error("Failure loading "+SrcURL+": "+ error.statusText);
  		return;
  	}
  	demo.View.Logger.info("Succesfully resolved " + SrcURL);
    demo.parse(json);
    demo.View.Logger.info(demo);
    demo.initView();
  });
});

var demo; // define netVis object here so that it is global
// and console accessable

$(function() {

  Settings = {};
  demo = new NetVis(Settings);
  var SrcURL="lotr.netvis";

  $('#history').rangeslider();


  $("#reset-positions").click(demo.resetPositions);
  $("#play").click(demo.play);


  d3.json(SrcURL, function(error, json) {
  	if (error) {
  		demo.View.Logger.error("Failure loading "+SrcURL+": "+ error.statusText);
  		return;
  	}
  	demo.View.Logger.info("Succesfully resolved " + SrcURL);
    demo.parse(json);
    demo.View.Logger.info(demo);
    demo.initView();
  });
});

Declare netvis instance globally to access from console
Declare netvis instance globally to access from console
