Split client-side code