Refactored ui.js into single files, cleaned up js folder

TODO: minimizer for merging all files belonging to the actual app into one