fix IE+SVG no classList available error. Based on #537 by @tyage