a js module to draw piecharts