converted svg to js

entire page uses .js to render svg