Updates to doc/javascriptAPI.txt