client-side example works. Thanks to @edgarsilva