New Client API: Uses js objects