Uncaught TypeError: document.getElementsByClassName.ToString is not a function