updated piechart js file