copy chart.html script template to chart_layers.html as working version