change div to params.dom in chart.html template