Javascript API client