An example of using Javascript with the Ginsberg API (client-side)