D3.JS - Creating a pie chart