Added check on already done browser sniff

Removed try/catch that didn't really work for IE10 and added if() check for IE10 property set at top of js code