Fixed error in main.js