Refactored/Streamlined PieChart.js