Make getAbsoluteUrl to work with all IE versions