Updated doc/javascriptAPI.txt