Work around lack of baseURI in IE.

Internet Explorer does not support baseURI. I think the document's own URL will be close enough and simple to get. With this change, it *does* work for me in IE9.