Did some more work on doc/javascriptAPI.txt