Removed unused js functions, removed unused files and inserted TODO tag to remove js code from view