define window.location.origin for IE
fix flexbox for ie