Snap overload for DOM was <any> type, changed to SVGElement