add pivot.js and jquery_pivot.js and iterate through chart.html