fixed var in main.js