Modify the code showing route information to be compatible with IE