JS (basic) authentication for Directory Listing