add IE8 support

delete called on the window object throws "object doesn't support this action" in IE8