'getElementsByClassName' doesn't exist in IE8

Fixes #532.