js clean up on pie chart