[JS] Added more docs
[JS] Added credentials to the client level too