Fixing up Javascript to pull in SVG's