A workaround for MSIE versions < 10 which do not recognize classList.

Signed-off-by: Joseph Rézeau <moodle@rezeau.org>