Add method calling section to javascript doc.