Added SVG Flask

Cleaned up code and files, split js files for now.