load chart.js
added chart.js lib
small refactor