document.getElementsByClassName is not a function

how come it cannot get ClassName correctly?

https://jsfiddle.net/jb0rdhen/7/