server: return resp with mime type
chart.js: format
public/js/chart.js: render data from server