Improved relocation of script tags

Previously, conditional comments weren't properly moved, resulting in IE-specific JavaScript being executed in all browsers.
Merge branch 'master' of github.com:WoltLab/WCF