GetElementById e GetElementsByClassName non funzionano allo stesso modo; non basta sostituirli.