putting main.js into index.html so it can use flask variables