Add js examples for public methods