fix jquery dependency and chart.js