This unload code should actually be only needed for old ie.