prepare variables for index.html in main.js