Fixed some broken unit tests.
Added IE 11 compatibility. IE 11 is treated as Gecko but it has still many IE bugs.