Added full compatibility with IE8 and newers