Any HTTP server that can serve files statically will work. Run this command to use the python3 http server:
python3 -m http.server
This will start a server at: http://127.0.0.1:8000/
Once again start your HTTP server and navigate to http:///test/test.html
Documentation is written in general JSDoc style. One generator is https://github.com/jsdoc/jsdoc. Using that and the command:
jsdoc src/*.js -d doc
... will create a doc
directory. Navigate to http:///doc/index.html to actually read the docs.