Moved d3 vars into the model and fixed JS error caused when render was triggered before the data loaded