Update main.js

IE 11 patch