IE document.contains bug fix