improve course data structure passed to templates, add min_score to highcharts