corrected IE8 polyfill for getElementsByClassName