Get rid of calls to deprecated document.popupNode