added javascript code for sample charts