IE8 does not support deleting attributes from the window