Move client-side code to example directory