moved svg declaration to top of main.js to stop svg divs from rendering each add