Enabled cors, added chart.js, removed debug code