Small change to fix incorrect method call in js client