JS refactoring: cache $('#doc-list')