(doc) Added pseudo-pseudo-code to JS files

Initial descriptions for file added to JS files.