define all variables in main.js