Added support for IE 9+