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