Issue #503 Documentation of javascript methods