Document the JavaScript.