use require with chartjs instead of linking the js in the html