Added missing declaration of variable in main.js