Moved visualization aspects out of makePieChart.js and back into index.