Fixes some bugs in IE. Dropped support for IE9-.