make JS more tolerant to DOM elements not existing