Prevent crash in browsers that don't support SVG

Check if SVG is supported and if it isn't then prevent script from
exectuting