Fixed JS errors in Internet Explorer 8 while loading the interface

Caused by an event that shouldn't be fired at this stage.

Now calling the global layout function.

(fixes #4659, #4166)