DDP client-side javascript example