Remove unused js files and cleans up base.