adds initial client-side code