Update documentation of the javascript module