If you add some JS code to the page, be sure to check the existence of DOM nodes