Fix classList breakage

This fixes the breakage introduced in 76312db759287f37e1a8d5184f669430fc4c5483
Merge pull request #456 from arv/fix-class-list-breakage

Fix classList breakage