Adding more complexity, because old IE versions don't have createNSResolver