Fixes #6163
Moved IE conditional statements to body to prevent ignoring the X-UA-Compatible tag by IE