some backend JS support for an endless scroll directory