fix external Chart.js loading failure