Better documentation for the JavaScript SDK