Cleaned up old ui code from .js files