Fixed instanceof Element checking (does not work in old IE).