preparation for or cake and javascript charting chart.js