Replaced searchbar.baseURI -> window.location.href. Needed for IE