added support for IE8+