made all report types to generic
moved charts functions to chart.js