Fixed javascript issue in IE8 (delete cannot be used on window properties) (#10960)

Change-Id: I03bb7e7dda8a44d06dffd3a077cb9b8acc45741d