Move set up for solution chart out of index.html to js/main.js