added client-side script