Fixed IE error in main.js