added legend to chart, updated chart.js