moved utility to check IE compatibility