[BUGFIX] IE < 9 bugfixes

* Replaces class list shim to support IE 8 as well
* Replaces forEach with for loop to support IE 8 as well