refactored IE check to check for all IE versions