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.
Merge pull request #280 from pjosephson/patch-1

Fix toolbar failing under IE