Executing custom client-side code