JS feature detection for SVG + using main element instead of div