IE8 error fix

Replaced getElementsByClassName() with querySelectorAll().