Updated check for cross-browser support specially for IE8