sample js file for cchart