JavaScript API client demo