only load the chart js if chart is present on page