refactoring d3chart.js + adding cpu, mem chart -> d3charts.js