Made Client-side API a global