Added slightly more javascriptdoc.