setup index, barchart.js, other files