The first step shows how to load documents with Javascript that accesses a public method of the container control.
Anyway, most ASP.NET applications requires loading documents from code-behind as you are using C# or VB.NET code to load documents or to fill a server-side tree view with the file names.