Fixes #6163
Moved IE conditional statements to body to prevent ignoring the X-UA-Compatible tag by IE
Merge pull request #6687 from Fensterbank/master

Fix for  IE9 in compatibility mode