Add logging for document.getElementsByName