Added support for IE8, Safari and Opera.