navigator.appVersion and navigator.appName are deprecated now. We need to either replace them with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
I rather suggest to drop the IE support, even MS doesn't support anymore IE.