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