Cleaned up not used anymore MainController methods and js files.