Use morris.js and moment.js instand of custom d3.js