Added support for ie8+