Fix toolbar failing under IE

Internet Explorer does not have access to window.location.origin.  This fixes any access to that property when using IE.