Removing the window before setinterval

Setinterval does not work on ie8