Moved UI scripts to separate files
Cleaned up SVG handling for UI