put js inside index into svg.js