javascript: added list-applications example
javascript: added dump-tree example
javascript: fixed a typo