document.contains does not exist in IE8!