add js for pic chart