Source code for _directorylisting, provides the JS and logic for
listing operations.