Update classList.js (safe check for Element)