Refactored javascript to remove EmptyFolderCatalogItemView